-- GENERATED SPELL FOR [Lieutenant Ta'zinni] --


function spell0_26815(pUnit, Event) --@Dragon\'s Breath,Self--
pUnit:FullCastSpellOnTarget(35250,pUnit)
pUnit:RegisterEvent('Sorts_26815', 3333, 1)
end

function spell1_26815(pUnit, Event) --@Frostfire Bolt,n/a--
pUnit:FullCastSpellOnTarget(51779,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26815', 12000, 1)
end

function Sorts_26815(pUnit, Event)
local choix_sorts_26815 = math.random(0, 1)
if choix_sorts_26815 == 0 then
pUnit:RegisterEvent('spell0_26815', 1, 1)
end
if choix_sorts_26815 == 1 then
pUnit:RegisterEvent('spell1_26815', 1, 1)
end
end

function mob26815_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26815', math.random(1500, 3000), 1)
end

function mob26815_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26815_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26815_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26815, 1, 'mob26815_Action')
RegisterUnitEvent(26815, 2, 'mob26815_Leave')
RegisterUnitEvent(26815, 3, 'mob26815_Kill')
RegisterUnitEvent(26815, 4, 'mob26815_Die')
